package designmode.decorator.ipmsg;

/**
 * 消息源地址装饰
 * 
 * @author yangjuntao@p-an.com 2013年11月22日
 */
public class SourAddress extends MessageDecorator
{
	private final Component component;

	public SourAddress(final Component component)
	{
		this.component = component;
	}

	@Override
	public void addMessage()
	{
		component.addMessage();
		System.out.println("This is a SourAddress.");

	}

}
